package part3.c19_emp.dao;


import part3.c19_emp.employee.Employee;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lie Created in 2018/3/29
 *
 * 抽象操作数据库
 * 在项目初期，我们使用{@link GPayrollDatabase}来模拟数据
 * 后面用回真正的dao操作即可
 */
public abstract class PayrollDatabase {
    protected static Map<Integer, Employee> employeeMap = new HashMap<Integer, Employee>();
    public abstract Employee getEmployee(int empId);
    public abstract void addEmployee(int empId, Employee e);
    static void clear(){
        employeeMap.clear();
    }
}
